package com.ruoyi.quartz.task;

import com.ruoyi.quartz.service.IWarningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * WarnTask TODO 定时任务预警、没懂
 *
 * @author augustqin
 * @Date 2025/2/18 13:36
 */
@Component("warntask")
public class WarnTask {

    @Autowired
    private IWarningService warningService;

    /**
     * 定时任务预警管理
     */
    public void warnTask() {
        System.err.println("定时任务预警管理");
        System.err.println("开始执行");
        warningService.checkWarningConditions();
    }
}

